package com.wdzj.common.pojo;

/**
 * ZjCodeInfoId entity. @author MyEclipse Persistence Tools
 */

public class ZjCodeInfoId implements java.io.Serializable {

	// Fields

	private String codeid;
	private String fatherid;

	// Constructors

	/** default constructor */
	public ZjCodeInfoId() {
	}

	/** full constructor */
	public ZjCodeInfoId(String codeid, String fatherid) {
		this.codeid = codeid;
		this.fatherid = fatherid;
	}

	// Property accessors

	public String getCodeid() {
		return this.codeid;
	}

	public void setCodeid(String codeid) {
		this.codeid = codeid;
	}

	public String getFatherid() {
		return this.fatherid;
	}

	public void setFatherid(String fatherid) {
		this.fatherid = fatherid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ZjCodeInfoId))
			return false;
		ZjCodeInfoId castOther = (ZjCodeInfoId) other;

		return ((this.getCodeid() == castOther.getCodeid()) || (this
				.getCodeid() != null
				&& castOther.getCodeid() != null && this.getCodeid().equals(
				castOther.getCodeid())))
				&& ((this.getFatherid() == castOther.getFatherid()) || (this
						.getFatherid() != null
						&& castOther.getFatherid() != null && this
						.getFatherid().equals(castOther.getFatherid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getCodeid() == null ? 0 : this.getCodeid().hashCode());
		result = 37 * result
				+ (getFatherid() == null ? 0 : this.getFatherid().hashCode());
		return result;
	}

}